function analysisUlr_file(url) {
	if (!url) {
		return null
	}
	//去除地址参数
	let httpStr = url.split('?')[0]
	if (!httpStr) {
		return null
	}
	//将url地址切割
	let urlFragments = httpStr.split('/')
	if (!urlFragments) {
		return null
	}
	//地址最后一段为文件名
	let fileName = urlFragments[urlFragments.length - 1]
	if (!fileName) {
		return null
	}
	//以点切割获取文件类型
	let fileType = fileName.split('.')
	fileType = fileType[fileType.length - 1]
	return {
		fileName: fileName,
		fileType: fileType
	}
}

module.exports = {
	analysisUlr_file
}
